package com.dropgame.world;

import com.dropgame.world.BodyStore.DropType;

public class ScoreManager{
	
	private int score = 0;
	int orangeMultiplier = 1;
	int purpleMultiplier = 1;
	int greenMultiplier = 1;
	
	DropType dropA;
	DropType dropB;
	
	public ScoreManager(){
		
	}
	
	public void dropCombined(){
		setScore(getScore() + 10);
	}
	
	public void DetermineScore(DropType dropA, DropType dropB){
		switch(dropA){
			case orangeDrop : {orangeMultiplier +=1;
							   purpleMultiplier = 1;
							   greenMultiplier = 1;
							   setScore(getScore() + (100 * orangeMultiplier));}
				break;
			case purpleDrop : {purpleMultiplier += 1;
							   greenMultiplier = 1;
							   orangeMultiplier = 1;
							   setScore(getScore() + (100 * purpleMultiplier));}
				break;
			case greenDrop : {greenMultiplier += 1;
							  purpleMultiplier = 1;
							  orangeMultiplier = 1;
							  setScore(getScore() + (100 * greenMultiplier));}
				break;
			default : {orangeMultiplier =1;
			   		   purpleMultiplier = 1;
			           greenMultiplier = 1;
			           setScore(getScore() + 100);}
		}
		
		
	}
	
	

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

}
